home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Portable Parts / BitArray / BitArray.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  421 b   |  27 lines

  1. // BitArray.h
  2.  
  3. #ifndef BitArray_h
  4. #define BitArray_h
  5.  
  6. #ifndef BitArrayBase_h
  7. #include "BitArrayBase.h"
  8. #endif
  9.  
  10. template < uint32 bitCount >
  11. class BitArray: public BitArrayBase
  12.   {
  13.     private:
  14.         Unit bits[ (bitCount + unitLength - 1) / unitLength ];
  15.     
  16.     public:
  17.         BitArray()
  18.           : BitArrayBase( bits, bitCount )
  19.           {}
  20.         
  21.         BitArray( bool initialValue )
  22.           : BitArrayBase( bits, bitCount, initialValue )
  23.           {}
  24.   };
  25.  
  26. #endif
  27.